#ifndef CDEFAULTFOCUSDYNAMICGUIOBJECT_H_
#define CDEFAULTFOCUSDYNAMICGUIOBJECT_H_

#include "cdynamicguiobject.h"

/**
 * CDefaultFocusDynamicGuiObject - abstract class extending gui object
 * @author Michal Rost
 * @date 27.06.2008
 */
class CDefaultFocusDynamicGuiObject : virtual public CDynamicGuiObject {
public:
  static string getClassName() {
    return "CDefaultFocusDynamicGuiObject";
  }
protected:
  bool isFocused(CMouseEvent* eventPtr) {
    int mx(eventPtr->getMouseX()), my(eventPtr->getMouseY());
    return (mx >= x && my >= y && mx <= x + width && my <= y + height);
  }
  bool isOverlap(CRect<int> &rect) {
    return false;
  }
};

#endif
